package com.smartcaliper.login;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.smartcaliper.MainActivity;
import com.smartcaliper.R;
import com.smartcaliper.base.BaseActivity;
import com.smartcaliper.view.ClearEditText;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class LoginActivity extends BaseActivity {

    @Bind(R.id.account_edit)
    ClearEditText accountEdit;
    @Bind(R.id.pwd_edit)
    ClearEditText pwdEdit;
    @Bind(R.id.login_btn)
    Button loginBtn;
    @Bind(R.id.forget_pwd)
    TextView forgetPwd;
    @Bind(R.id.signup)
    TextView signup;
    @Bind(R.id.facebook_tv)
    TextView facebookTv;
    @Bind(R.id.twitter_tv)
    TextView twitterTv;
    @Bind(R.id.facebook_twitter_layout)
    LinearLayout facebookTwitterLayout;
    @Bind(R.id.qq_tv)
    TextView qqTv;
    @Bind(R.id.wechat_tv)
    TextView wechatTv;
    @Bind(R.id.qq_wechat_layout)
    LinearLayout qqWechatLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        transportSystemBar(true);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.login_btn, R.id.forget_pwd, R.id.signup, R.id.facebook_tv, R.id.twitter_tv, R.id.qq_tv, R.id.wechat_tv})
    public void onClick(View view) {
        Intent intent = null;
        switch (view.getId()) {
            case R.id.login_btn:
                intent = new Intent(this,MainActivity.class);
                startActivity(intent);
                break;
            case R.id.forget_pwd:
                intent = new Intent(this,ForgotPwdActivity.class);
                startActivity(intent);
                break;
            case R.id.signup:
                intent = new Intent(this,RegisterActivity.class);
                startActivity(intent);
                break;
            case R.id.facebook_tv:
                break;
            case R.id.twitter_tv:
                break;
            case R.id.qq_tv:
                break;
            case R.id.wechat_tv:
                break;
        }
    }
}
